mydict = {"one": ['1', '2'], "two": "3"}


def handle_dict1(data):
    mydict = {}
    mydict["one"] = data.get("two")
    print(mydict)

def handle_dict2(data):
    mydict["one"] = data.get("two")
    print(mydict)


if __name__ == '__main__':
    handle_dict1(mydict)
    print(mydict)
    handle_dict2(mydict)
    print(mydict)